
Component({
    data: {
      active: "home",
    },
    
    methods: {
      onChange(event:any) {
        console.log(event)
        wx.switchTab({url: '/pages/'+event.detail})
        console.log('/pages/'+event.detail)
        this.setData({ active: event.detail })
      }
    }
  })
